價格:免費
更新日期:2017-06-02
檔案大小:975k
目前版本:1.0
版本需求:Android 4.0.3 以上版本
官方網站:http://KAPLANDROID.com
Email:apps@kaplandroid.com
聯絡地址:Istanbul
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.
>Rules
Any live cell with fewer than two live neighbours dies, as if caused by under-population.
Any live cell with two or three live neighbours lives on to the next generation.
Any live cell with more than three live neighbours dies, as if by over-population.
Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
>For more information
See the wikipedia article on Conway's Game of Life: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
>How to play
The game comes with randomly generated game table. Also you can clear and draw your own patterns too. This application supports both landscape and portrait orientations.
>Development
This game includes one activity and one backgorund service. "LocalBroadcastManager" is used for commonicaiton between activity and backgroud service (GameService.java)
There is a singleton class "GameData.java" that holds game settings.
Observer Pattern is used for interactions of cells. When a cell changes its state its neighbour cells will observe this status change and keeps for next generation.
>Source Code
This is a demo application of my open source project on Github. You can checkout source codes at github. https://github.com/KAPLANDROID/Game-Of-Life